<script setup lang="ts">
import { ref } from 'vue'
import { Button } from 'view-ui-plus'
defineProps({ msg: { type: String, default: 'hello' } })
const count = ref(0)
</script>

<template>
  <h1 v-once>{{ msg }}</h1>
  <p v-for="id in 10" :key="id" v-memo="[id === 0, count]">
    <Button type="default" :loading="(id ^ count) & 1 ? false : true" @click="count++">count {{
      id }}: {{ count }}</Button>
  </p>
</template>